package com.fnzn.entranceGuard.service;

import com.baomidou.mybatisplus.service.IService;
import com.fnzn.entranceGuard.entity.GuardIcDevice;
import com.fnzn.entranceGuard.entity.GuardIcInfo;
import com.github.pig.common.util.ResponseUtil;

/**
 * <p>
 * IC设备关联 服务类
 * </p>
 *
 * @author JokerGao
 * @since 2018-08-24
 */
public interface IGuardIcDeviceService extends IService<GuardIcDevice> {

    ResponseUtil updateStatusByIcInfoId(GuardIcInfo guardIcInfo);

    ResponseUtil updateStatusByHouseId(String houseId);

    /**
     * 通过设备号、16进制byte类型的ic卡号、硬件返回的state状态修改GuardIcDevice同步状态
     * @param deviceNumber
     * @param icIds
     * @param state
     */
    void updateStatus(String deviceNumber, byte[] icIds, Integer state);

    void deleteIcDevice(String deviceNumber, byte[] icIds, Integer state);

}
